aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-05-06 01:37:13 +0200
committerLorenz Diener <[email protected]>2018-05-06 01:37:13 +0200
commita15d28d9d60128fd5551f05eccd8999b46f70f5e (patch)
tree84c2e92799983594138a9a4fc4ec7dab429e52bf /tests/cassettes/test_status_post[Content warning-unlisted].yaml
parentad6b8eeb044760adf4b420199164b245012350f4 (diff)
downloadmastodon.py-a15d28d9d60128fd5551f05eccd8999b46f70f5e.tar.gz
Testing updates, can now test streaming API
Diffstat (limited to 'tests/cassettes/test_status_post[Content warning-unlisted].yaml')
-rw-r--r--tests/cassettes/test_status_post[Content warning-unlisted].yaml79
1 files changed, 11 insertions, 68 deletions
diff --git a/tests/cassettes/test_status_post[Content warning-unlisted].yaml b/tests/cassettes/test_status_post[Content warning-unlisted].yaml
index 099c0e9..a9321fc 100644
--- a/tests/cassettes/test_status_post[Content warning-unlisted].yaml
+++ b/tests/cassettes/test_status_post[Content warning-unlisted].yaml
@@ -1,62 +1,5 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: spoiler_text=Content+warning&status=Toot%21&visibility=unlisted
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive]
9 Content-Length: ['63']
10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.9.1]
12 method: POST
13 uri: http://localhost:3000/api/v1/statuses
14 response:
15 body: {string: '{"id":"99882190704093912","created_at":"2018-04-18T19:54:39.096Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content
16 warning","visibility":"unlisted","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882190704093912","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882190704093912","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
17 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
18 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
19 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":0,"statuses_count":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
20 headers:
21 Cache-Control: ['max-age=0, private, must-revalidate']
22 Content-Type: [application/json; charset=utf-8]
23 ETag: [W/"052032a3c6552261e7e598cd26b42b47"]
24 Transfer-Encoding: [chunked]
25 Vary: ['Accept-Encoding, Origin']
26 X-Content-Type-Options: [nosniff]
27 X-Frame-Options: [SAMEORIGIN]
28 X-Request-Id: [7067aab9-c53b-4084-badb-92f8ed6c1389]
29 X-Runtime: ['0.341950']
30 X-XSS-Protection: [1; mode=block]
31 content-length: ['1413']
32 status: {code: 200, message: OK}
33- request:
34 body: null
35 headers:
36 Accept: ['*/*']
37 Accept-Encoding: ['gzip, deflate']
38 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
39 Connection: [keep-alive]
40 Content-Length: ['0']
41 User-Agent: [python-requests/2.9.1]
42 method: DELETE
43 uri: http://localhost:3000/api/v1/statuses/99882190704093912
44 response:
45 body: {string: '{}'}
46 headers:
47 Cache-Control: ['max-age=0, private, must-revalidate']
48 Content-Type: [application/json; charset=utf-8]
49 ETag: [W/"e66e319d7c337d6bb0aa7df37af0e536"]
50 Transfer-Encoding: [chunked]
51 Vary: ['Accept-Encoding, Origin']
52 X-Content-Type-Options: [nosniff]
53 X-Frame-Options: [SAMEORIGIN]
54 X-Request-Id: [14116fa4-0226-43bb-9f9a-a9c876767d37]
55 X-Runtime: ['0.062839']
56 X-XSS-Protection: [1; mode=block]
57 content-length: ['2']
58 status: {code: 200, message: OK}
59- request:
60 body: status=Toot%21&visibility=unlisted&spoiler_text=Content+warning 3 body: status=Toot%21&visibility=unlisted&spoiler_text=Content+warning
61 headers: 4 headers:
62 Accept: ['*/*'] 5 Accept: ['*/*']
@@ -69,23 +12,23 @@ interactions:
69 method: POST 12 method: POST
70 uri: http://localhost:3000/api/v1/statuses 13 uri: http://localhost:3000/api/v1/statuses
71 response: 14 response:
72 body: {string: '{"id":"99882235538941049","created_at":"2018-04-18T20:06:03.200Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content 15 body: {string: '{"id":"99979315154071311","created_at":"2018-05-05T23:34:40.590Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content
73 warning","visibility":"unlisted","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882235538941049","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235538941049","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 16 warning","visibility":"unlisted","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979315154071311","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979315154071311","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
74 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 17 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
75 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI 18 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
76 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 19 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":127},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
77 headers: 20 headers:
78 Cache-Control: ['max-age=0, private, must-revalidate'] 21 Cache-Control: ['max-age=0, private, must-revalidate']
79 Content-Type: [application/json; charset=utf-8] 22 Content-Type: [application/json; charset=utf-8]
80 ETag: [W/"646dd9da5cd16bdde960eeec5a0bbdaa"] 23 ETag: [W/"53868a672f8ffaf66d1838c85e549389"]
81 Transfer-Encoding: [chunked] 24 Transfer-Encoding: [chunked]
82 Vary: ['Accept-Encoding, Origin'] 25 Vary: ['Accept-Encoding, Origin']
83 X-Content-Type-Options: [nosniff] 26 X-Content-Type-Options: [nosniff]
84 X-Frame-Options: [SAMEORIGIN] 27 X-Frame-Options: [SAMEORIGIN]
85 X-Request-Id: [2290c68a-1b59-4fbf-8edd-a25b9a1d728d] 28 X-Request-Id: [4fedd4a7-3f34-4720-8818-829b545dd6a0]
86 X-Runtime: ['0.309518'] 29 X-Runtime: ['0.282334']
87 X-XSS-Protection: [1; mode=block] 30 X-XSS-Protection: [1; mode=block]
88 content-length: ['1413'] 31 content-length: ['1414']
89 status: {code: 200, message: OK} 32 status: {code: 200, message: OK}
90- request: 33- request:
91 body: null 34 body: null
@@ -97,19 +40,19 @@ interactions:
97 Content-Length: ['0'] 40 Content-Length: ['0']
98 User-Agent: [python-requests/2.9.1] 41 User-Agent: [python-requests/2.9.1]
99 method: DELETE 42 method: DELETE
100 uri: http://localhost:3000/api/v1/statuses/99882235538941049 43 uri: http://localhost:3000/api/v1/statuses/99979315154071311
101 response: 44 response:
102 body: {string: '{}'} 45 body: {string: '{}'}
103 headers: 46 headers:
104 Cache-Control: ['max-age=0, private, must-revalidate'] 47 Cache-Control: ['max-age=0, private, must-revalidate']
105 Content-Type: [application/json; charset=utf-8] 48 Content-Type: [application/json; charset=utf-8]
106 ETag: [W/"b6837f4319f47b5568763ee37aa5b1c9"] 49 ETag: [W/"ee6de90a7ec20591ab6c60d183c68d5d"]
107 Transfer-Encoding: [chunked] 50 Transfer-Encoding: [chunked]
108 Vary: ['Accept-Encoding, Origin'] 51 Vary: ['Accept-Encoding, Origin']
109 X-Content-Type-Options: [nosniff] 52 X-Content-Type-Options: [nosniff]
110 X-Frame-Options: [SAMEORIGIN] 53 X-Frame-Options: [SAMEORIGIN]
111 X-Request-Id: [3d62d6cf-256a-4cc0-835d-730e427a30a6] 54 X-Request-Id: [d34e5ab6-619c-4fff-9170-f9ced6b1d526]
112 X-Runtime: ['0.034950'] 55 X-Runtime: ['0.077163']
113 X-XSS-Protection: [1; mode=block] 56 X-XSS-Protection: [1; mode=block]
114 content-length: ['2'] 57 content-length: ['2']
115 status: {code: 200, message: OK} 58 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)